package vista;

import java.util.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class Inicio extends JFrame {

	private static final long serialVersionUID = 1L;
	private JButton boton;
	private JLabel label;

	public Inicio() {
		boton = new JButton("Dame Click");
		boton.setSize(150, 50);
		label = new JLabel("Texto");
		label.setSize(10, 10);
		boton.setText("Hola mundo");
		boton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				label.setText("Hola");

			}
		});
		setSize(500, 500);
		add(boton);
		add(label);
	}

}
